<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2021/4/9
  Time: 18:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>Title</title>
    <head>
        <title>二手商品管理系统</title>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/css/pintuer.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/css/admin.css">
        <script src="${pageContext.request.contextPath}/js/jquery-3.2.1.min.js" type="text/javascript"></script>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/css/font.css">
        <link rel="stylesheet" href="${pageContext.request.contextPath}/css/xadmin.css">

        <script type="text/javascript" src="${pageContext.request.contextPath}/lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/xadmin.js"></script>

    </head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
        <h1><img src="${pageContext.request.contextPath}/images/y.jpg" class="radius-circle rotate-hover" height="50" alt=""/>酒店管理管理系统</h1>
    </div>
    <div class="head-l">
        <a href="#" class="button button-little bg-green" target="_blank"> 系统首页</a> &nbsp;&nbsp;
        <a href="#" class="button button-little bg-blue" onclick="x_admin_show('修改密码','update-pwd.jsp',500,300)">
            修改密码</a> &nbsp;&nbsp;
        <a href="${pageContext.request.contextPath}/exit" class="button button-little bg-red"> 退出登录</a></div>
</div>
<div class="leftnav">
    <div class="leftnav-title"><strong>菜单列表</strong></div>

    <%--只有VIP角色才可以看到下面的连接--%>
    <%--    <shiro:hasRole name="vip">--%>
    <h2>我的信息</h2>
    <ul style="display:block">
        <li><a href="${pageContext.request.contextPath}/goods/showGoods" target="right">购买商品</a></li>
    </ul>
    <h2>用户信息管理</h2>
    <ul style="display:block">
        <li><a href="${pageContext.request.contextPath}/user/admin-list" target="right">查看已注册用户</a></li>
        <li><a href="${pageContext.request.contextPath}/user/admin-add" target="right">用户信息添加</a></li>
        <%--            <li><a href="${pageContext.request.contextPath}/user/admin-add" target="right">用户信息添加</a></li>--%>
    </ul>
    <%--    </shiro:hasRole>--%>
    <%--        超级重要！！
                1、商品的天猫展示
                2、出售时的添加商品图片
    --%>
    <h2>商品管理</h2>
    <ul style="display:block">
        <li><a href="${pageContext.request.contextPath}/goods/showGoods?userName=${userName}" target="right">购买商品</a></li>
        <li><a href="${pageContext.request.contextPath}/goods/orderList?userName=${userName}" target="right">我的订单</a></li>
        <li><a href="${pageContext.request.contextPath}/user/admin-add?userName=${userName}" target="right">我要出售</a></li>
    </ul>


    <h2>商品审核</h2>
    <ul style="display:block">
        <li><a href="${pageContext.request.contextPath}/review/reviewList" target="right">审核管理</a></li></li>
        <li><a href="${pageContext.request.contextPath}/menu/menuList" target="right">全部销售</a></li>
    </ul>
    <%--    </shiro:hasRole>--%>


    <%--    </shiro:hasRole>--%>


    <%--    <shiro:hasRole name="vip1">--%>
    <%--    <h2>订桌管理</h2>--%>
    <%--    <ul style="display:block">--%>
    <%--        <li><a href="${pageContext.request.contextPath}/table/tablePage" target="right">预定桌位</a></li>--%>
    <%--        <li><a  href="${pageContext.request.contextPath}/Reserve/tableReserve1?userName=${userName}" target="right">--%>
    <%--            &lt;%&ndash;            userName=${userName}&ndash;%&gt;--%>
    <%--            我的预定</a></li>--%>
    <%--    </ul>--%>
    <%--    &lt;%&ndash;    </shiro:hasRole>&ndash;%&gt;--%>

    <%--    &lt;%&ndash;    <shiro:hasRole name="finance">&ndash;%&gt;--%>
    <%--    <h2>订单管理</h2>--%>
    <%--    <ul style="display:block">--%>
    <%--        <li><a href="${pageContext.request.contextPath}/review/reviewList" target="right">订单管理</a></li>--%>

    <%--    </ul>--%>
    <%--    </shiro:hasRole>--%>

    <%--    <shiro:hasRole name="warehouse">--%>
    <%--    <h2>仓库管理</h2>--%>
    <%--    <ul style="display:block">--%>
    <%--        <li><a href="${pageContext.request.contextPath}/warehouse/warehouselist" target="right">我的仓库</a></li>--%>
    <%--        <li><a href="${pageContext.request.contextPath}/warehouse/warehouseadd" target="right">进货</a></li>--%>
    <%--        <li><a href="${pageContext.request.contextPath}/warehouse/warehouseupdate" target="right">续货</a></li>--%>
    <%--        <li><a href="${pageContext.request.contextPath}/warehouse/wareHouseReturn" target="right">退货</a></li>--%>
    <%--    </ul>--%>
    <%--    </shiro:hasRole>--%>

    <%--    <shiro:hasRole name="finance">--%>
    <%--    <h2>财务管理管理</h2>--%>
    <%--    <ul style="display:block">--%>
    <%--        <li><a href="${pageContext.request.contextPath}/table/money-select" target="right">财务表</a></li>--%>
    <%--    </ul>--%>
    <%--    </shiro:hasRole>--%>

</div>
<script type="text/javascript">
    $(function () {
        $(".leftnav h2").click(function () {
            $(this).next().slideToggle(200);
            $(this).toggleClass("on");
        })
        $(".leftnav ul li a").click(function () {
            $("#a_leader_txt").text($(this).text());
            $(".leftnav ul li a").removeClass("on");
            $(this).addClass("on");
        })
    });


</script>
<ul class="bread">
    <li><a href="table.jsp" target="right"> 首页</a></li>
    <li><a href="##" id="a_leader_txt">网站信息</a></li>
    <li><b>登录用户：</b><span style="color:red;">${userName}</span>

</ul>
<div class="admin">
    <iframe scrolling="auto" rameborder="0" src="${pageContext.request.contextPath}/WEB-INF/jsp/admin/admin-list.jsp" name="right" width="100%" height="100%"></iframe>
</div>
<div style="text-align:center;">
</div>
</body>
</html>
